package datastructure.linked;

/**
 * 类的功能描述
 *
 * @author 杨 强
 * @package datastructure.linked
 * @createTime 2023-03-01 22:29
 */
public class Test01 {
    public static void main(String[] args) {
        SinglyLinkList singlyLinkList = new SinglyLinkList();

        singlyLinkList.addFirst(1);
        singlyLinkList.addFirst(2);
        singlyLinkList.addFirst(3);
        singlyLinkList.addFirst(4);

        singlyLinkList.recursionLoop(value -> {
            System.out.println("b" + value);
        }, value -> {
            System.out.println("a" + value);
        });

    }
}
